/**
 * 样式文件
 * 州弟医院信息系统 - 州弟学安全
 */

/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

.text-primary {
    color: #007bff !important;
}

.bg-primary {
    background-color: #0056b3 !important;
}

.btn-primary {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-primary:hover {
    background-color: #004494;
    border-color: #004494;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
}

/* 新增的导航栏样式 */
.main-nav {
    margin: 0 auto;
}

.main-nav .nav-item {
    margin: 0 10px;
}

.auth-nav {
    margin-left: 20px;
}

.auth-nav .nav-item {
    margin-left: 8px;
}

.auth-link {
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
}

.auth-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 页面标题 */
.page-title {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

/* 卡片样式 */
.card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* 表单样式 */
.form-control:focus {
    border-color: #0056b3;
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

.form-group label {
    font-weight: 500;
}

/* 按钮样式 */
.btn {
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

/* 页脚样式 */
footer {
    margin-top: 2rem;
}

.social-icons a {
    display: inline-block;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

/* 表格样式 */
.table thead th {
    background-color: #f8f9fa;
    border-top: none;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 86, 179, 0.05);
}

/* 医生介绍卡片 */
.doctor-card {
    margin-bottom: 2rem;
}

.doctor-card img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.doctor-card .doctor-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.doctor-card .doctor-specialty {
    color: #6c757d;
    margin-bottom: 1rem;
}

/* 科室介绍样式 */
.department-card {
    margin-bottom: 2rem;
}

.department-card .dept-name {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.department-card .dept-info {
    margin-bottom: 0.5rem;
}

/* 预约表单样式 */
.appointment-form {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 密码强度指示器 */
.password-strength {
    height: 5px;
    margin-top: 8px;
    border-radius: 2px;
    transition: width 0.3s;
}

.strength-weak {
    background-color: #dc3545;
    width: 30%;
}

.strength-medium {
    background-color: #ffc107;
    width: 60%;
}

.strength-strong {
    background-color: #28a745;
    width: 100%;
}

/* 响应式调整 */
@media (max-width: 767.98px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
}

/* 管理后台样式 */
.admin-sidebar {
    background-color: #343a40;
    color: #fff;
    min-height: calc(100vh - 56px);
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.75);
    padding: 0.5rem 1rem;
    border-left: 3px solid transparent;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: #007bff;
}

.admin-sidebar .nav-link i {
    margin-right: 0.5rem;
}

.admin-content {
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 0.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.admin-dashboard-card {
    background-color: #fff;
    border-radius: 0.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.admin-dashboard-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.admin-dashboard-card .card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.admin-dashboard-card .card-value {
    font-size: 1.8rem;
    font-weight: bold;
}

/* 自定义警报样式 */
.alert {
    border-radius: 0.25rem;
    border-left-width: 4px;
}

.alert-danger {
    border-left-color: #dc3545;
}

.alert-success {
    border-left-color: #28a745;
}

/* 消息提示居中显示 */
main .alert {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
    text-align: center;
} 